﻿var jQueryScriptOutputted = false;
function initJQuery() {

    //if the jQuery object isn't available
    if (typeof (jQuery) == 'undefined') {

        if (!jQueryScriptOutputted) {
            //only output the script once..
            jQueryScriptOutputted = true;

            //output the script (load it from google api)
            document.write("\x3Cscript type=\"text/javascript\" src=\"http://code.jquery.com/jquery-latest.min.js\">\x3C/script>");
            //if (labels instanceof Array && labels.length > 0) {
            //    document.write("\x3Cscript type=\"text/javascript\" src=\"./opentip-jquery.min.js\">\x3C/script>");
            //}
        }
        setTimeout("initJQuery()", 50);
    } else {
        $(function(){});
    }

}
initJQuery();
